<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>欢迎登录</title>
</head>
<body>
欢迎${username},登录！
<h3>留言列表</h3>
<table border="1" width="50%">
    <tr>
        <td>#ID</td>
        <td>姓名</td>
        <td>日期</td>
        <td>标题</td>
        <td>内容</td>
    </tr>
    <c:forEach items="${list}" var="ly" varStatus="vs">
        <tr>
            <td>${vs.count}</td>
            <td>${ly.username}</td>
            <td>${ly.date}</td>
            <td>${ly.title}</td>
            <td>${ly.content}</td>
        </tr>
    </c:forEach>
</table>

</body>
</html>
